
<h1>TeamPlayers</h1>


<cfoutput>
	<h3>#linkTo(text="Create Team Player", action="new")#</h3>
</cfoutput>

<cfif teamPlayers.recordCount>
<p>or</p>

<p>
	Select existing team player...
</p>

<table>
	<tr>
		<th>TeamPlayerID</th>
		<th>TeamID</th>
		<th>PlayerID</th>
		<th>Position</th>
		<th>Created</th>
		<th colspan="3">Actions</th>
	</tr>
	<cfloop query="teamPlayers" startrow="1" endrow="#teamPlayers.recordCount#">
	<cfoutput>
	<tr>
		<td>#TeamPlayerID#</td>
		<td>#TeamID#</td>
		<td>#PlayerID#</td>
		<td>#Position#</td>
		<td>#DateFormat(created, 'long')#</td>
		<td>
			#linkTo(text="Show", action="show", key=TeamPlayerID)#
		</td>
		<td>
			#linkTo(text="Edit", action="edit", key=TeamPlayerID)#
		</td>
		<td>
			#linkTo(text='Delete', action='delete', key=TeamPlayerID, confirm='Are you sure?')#
		</td>
	</tr>
	</cfoutput>
	</cfloop>
</table>

</cfif>